import { getcarLIst,getcartAdd,getcartNum } from "@/api/car"
export default function getcarlist(){
    async function getcarlist(id:string):Promise<any>{
        const res=await getcarLIst(id);
        return res
     }
    async function getcaradd(data:any):Promise<any>{
        const res=await getcartAdd(data);
        return res
    }
    async function getcartnum() {
        const res = await getcartNum()
        return res
    }
    return {
        getcartnum,
        getcarlist,
        getcaradd
    }
}
